#include <iostream>
#include <string>
#include "surface.hpp"
#include "visiteur.hpp"

int main(int argc, char* argv[])
{
	Surface s;
	if (argc < 2)
	{
		//cas par defaut
		s.chargementOFF("data/queen.off");
	}
	else
	{
		s.chargementOFF(argv[1]);
	}
	std::cout<<"chargement fini"<<std::endl;
	
	Visiteur v;
	v.tache(s);
	s.ecritureOFF("data/resultatTache.off");
	std::cout<<"ecriture de resultatTache.off fini"<<std::endl;
	
	v.zebrage(s);
	s.ecritureOFF("data/resultatZebrage.off");
	std::cout<<"ecriture de resultatZebrage.off fini"<<std::endl;
	
	v.quadrillage(s);
	s.ecritureOFF("data/resultatQuadrillage.off");
	std::cout<<"ecriture de resultatQuadrillage.off fini"<<std::endl;

	return 0;
}
